import axios from "@/api";

// 登录
export const getvideoPlayUrl = () => {
  return axios({
    url: "/service/videoPlayUrl/getGroupTree",
    method: "get",

  });
};

///videoPlayUrl/getchannelstream
export const getchannelstream = (data: any) => {
  return axios({
    url: "/service/videoPlayUrl/getchannelstream?ip=" + data.ip + "&Channel=" + data.Channel,
    method: "get",

  });
};
export const saveUserVideoUrl = (data: any) => {
  return axios({
    url: "/service/userVideoUrl",
    method: "post",
    data
  });
};
export const deletUserVideoUrl = (data: any) => {
  return axios({
    url: "/service/userVideoUrl",
    method: "delete",
    data
  });
};